Skip to main content

Autoserve Customer Contract Termination Import

Introduction

This guide explains the process of importing Autoserve vehicle termination records into ViSN.

Download a sample Autoserve customer contract import file.

File Format

  • Format: Comma-Separated Values (CSV)
  • Encoding: UTF-8

Autoserve Customer Contract Termination Import

The same import file is used for validation; therefore, no additional validation is required.

Importing the File

  1. Navigate to Actions in the Import Manager.
  2. Locate <Environment> - on-demand-import.
  3. Select the branch created for this import.
  4. Enter the script name as import:autoServeCustomerContractTermination.

Terminating the Vehicle via Cloud Run

Autoserve Customer Contract Termination Scheduler Setup

This guide outlines the steps to create Cloud Schedulers for importing Autoserve customer contract terminations.

Creating a Scheduler for Importing Autoserve Customer Contract Termination

  1. Go to Cloud Scheduler.
  2. Click CREATE JOB.

Required Configuration

Configure the Cloud Scheduler with the following parameters:

  • Name: autoserve_customer_contract_termination_import
  • Region: europe-west2
  • Frequency: 0 0 31 12 1
  • Time Zone: GMT London
  • Target Type: HTTP
  • URL: https://import-manager-36r2bu4izq-uc.a.run.app/auto-serve-customer-contract-termination
  • HTTP Method: POST
  • Auth Header: Select OIDC token
  • Service Account: auto-serve-customer-contract-termination
  • Body: JSON object with the following parameters:
{
"leaseId": "QJKgdjS4I02sEia4yTne",
"leaseCompanyName": "Next Fleet Services",
"persist": "true",
"bucket": "biddirect-2.appspot.com",
"appDirectory": "/usr/src/app/",
"importPath": "imports/fileDrop/",
"importFileDropPath": "imports/fileDrop/",
"importFileName": "autoserveCustomerContractTermination.csv",
"email": "mailgun@digitalinnk.com",
"fatalErrorEmailToAddress": "mailgun@digitalinnk.com",
"schema": "AUTO_SERVE_CUSTOMER_CONTRACT_TERMINATION"
}

Autoserve Customer Contract Import Termination Scheduler

This section provides instructions to create and configure Cloud Schedulers for importing Autoserve customer contract terminations.

Creating a Scheduler for Importing Autoserve Customer Contract Termination

Preparation

  1. Bucket Name: biddirect-2.appspot.com (bucket name may vary across environments).
  2. File Path: Place the file in imports/fileDrop within the bucket using the CSV file named autoServeCustomerContractTermination.csv.

Importing

  1. Go to Cloud Scheduler.
  2. Run the autoserve_customer_contract_import job (job name may vary across environments).

Testing

  1. After running the import, verify that Autoserve vehicles have been successfully imported into the ViSN customer platform.
  2. Go to Vehicle Record and search for the terminated vehicle to confirm that the termination process was successful.
Status: Accepted
Category: Protected
Authored By: Jeyakumar Arunagiri on Mar 03, 2025
Revisions